package com.core.reach.cloudhub.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/4/1 8:55
 **/
@Mapper
public interface StorageMapper {

    /**
     * 减库存
     *
     * @param productId 产品编号
     * @param count     数量
     * @return Integer
     */
    Integer reduceStorage(@Param("productId") Long productId,
                          @Param("count") Integer count);

}
